#include "junix.h"

int main(int argc, char **argv)
{
	FILE *fp = fopen("/proc/uptime","r");
	char buf[BUFSIZ];
	if( fgets(buf, BUFSIZ, fp) != NULL)
		printf("%s", buf);

	if( ferror(fp) )
		err_quit("ferror");

	if( fclose(fp) == EOF)
		err_quit("fclose");

    exit(0);
}

